package com.david.config;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//@ControllerAdvice
public class GlobalDefaultExceptionHandler {

//    @ExceptionHandler(Exception.class)
//    public String defaultExceptionHandler(HttpServletRequest request, Exception ex){
//
//        //全局异常处理
//
//        return "error";
//
//    }
}
